import { createRouter, createWebHistory } from 'vue-router'
// import Home from '../views/Home/Home.vue'



const router = new createRouter({
    history: createWebHistory(
        import.meta.env.BASE_URL
    ),
    routes: [
        { path: '/', redirect: '/scan' },
        {
            path: '/home',
            component: () =>
                import ('../views/Home/Home.vue'),
            children: [{
                    path: '/scan',
                    component: () =>
                        import ('../views/Scan/Scan.vue')
                },
                {
                    path: '/one',
                    component: () =>
                        import ('../views/Class/One/One.vue')
                },
                {
                    path: '/two',
                    component: () =>
                        import ('../views/Class/Two/Two.vue')
                },
                {
                    path: '/three',
                    component: () =>
                        import ('../views/Class/Three/Three.vue')
                },
                {
                    path: '/fourA',
                    component: () =>
                        import ('../views/Class/FourA/FourA.vue')
                },
                {
                    path: '/fourB',
                    component: () =>
                        import ('../views/Class/FourB/FourB.vue')
                },
                {
                    path: '/fourC',
                    component: () =>
                        import ('../views/Class/FourC/FourC.vue')
                },
                {
                    path: '/fourD',
                    component: () =>
                        import ('../views/Class/FourD/FourD.vue')
                },
                {
                    path: '/five',
                    component: () =>
                        import ('../views/Class/Five/Five.vue')
                },
                {
                    path: '/six',
                    component: () =>
                        import ('../views/Class/Six/Six.vue')
                },
                {
                    path: '/seven',
                    component: () =>
                        import ('../views/Class/Seven/Seven.vue')
                },
                {
                    path: '/eight',
                    component: () =>
                        import ('../views/Class/Eight/Eight.vue')
                },
                {
                    path: '/nineA',
                    component: () =>
                        import ('../views/Class/NineA/NineA.vue')
                },
                {
                    path: '/nineB',
                    component: () =>
                        import ('../views/Class/NineB/NineB.vue')
                },
                {
                    path: '/nineC',
                    component: () =>
                        import ('../views/Class/NineC/NineC.vue')
                },
                {
                    path: '/nineD',
                    component: () =>
                        import ('../views/Class/NineD/NineD.vue')
                },
                {
                    path: '/ten',
                    component: () =>
                        import ('../views/Class/Ten/Ten.vue')
                }
            ]
        },
        // { path: '/', component: Six }
    ]
})

export default router